import request from '@/utils/request'
// 分页条件插查询所有未归还的借阅信息
export const getAllPageNotBack = (page, pageSize, { bookName, username, number, begin, end }) => {
  return request.get('/borrow/page/status/1', {
    params: {
      page,
      pageSize,
      bookName,
      username,
      number,
      begin,
      end
    }
  })
}

// 删除借阅记录
export const deleteById = (id) => {
  return request.delete('/borrow/' + id)
}
